package com.zhang.teachingcommunity_spring.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "score")
public class Score {
    @TableId(value = "score_id",type = IdType.AUTO)
    private Integer scoreId;
    private Integer schoolId;
    private String stuNo;
    private Integer courseId;
    private BigDecimal score;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS")
    private Timestamp examtime;
    @TableField(exist = false)
    private Course courses;
    @TableField(exist = false)
    private School school;
}
